﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace TravelingWebApp.ViewModels
{
    public class ChangePwdViewModel
    {
        [Required]
        [DataType(DataType.Password)]
        public string OldPassword { get; set; }
        
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }
        
        [Compare("NewPassword", ErrorMessage ="新旧密码不匹配")]
        public string ConfirmPassword { get; set; }

    }
}
